package com.wh1200.xmlless.test.dao;

import com.wh1200.mybatis.xmlless.XmlLessMapper;
import com.wh1200.xmlless.test.model.Dictionary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 字典表实体类
 *
 * @author 骆嘉民 2022-04-07
 * @version 0.0.1
 */
public interface DictionaryDAO extends XmlLessMapper<Dictionary> {

  /**
   * 根据字典组、字典值查询字典记录
   *
   * @param dictIds 字典主键
   */
  List<Dictionary> selectByIdIn(@Param("dictIds") List<String> dictIds);

  int insert(Dictionary entity);

  Dictionary selectById(String id);

  int updateById(Dictionary entity);

}
